package database

import (
	"gorm.io/driver/mysql"
	"gorm.io/gorm"
)

func DB() (db *gorm.DB) {
	dsn := "root:123456@tcp(192.168.88.11:3306)/model_test?charset=utf8mb4&parseTime=True&loc=Local"
	db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{})
	if err != nil {
		return nil
	}
	return
}
